<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>
<head><title>Message_InBox</title></head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<script type="text/javascript" src="../js/personal_all.js"></script>
	<style type="text/css">
	<!--
	body {
		margin-left: 0px;
		margin-top: 0px;
		margin-right: 0px;
		margin-bottom: 0px;
		background-color: #EEF2FB;
	}
	-->
	</style>
<link href="../images/skin.css" rel="stylesheet" type="text/css" />
<body>
<form name="form" method="post" action="../message/deleteMessageList.action">
 <input id="hid" name="hid"  type="hidden" value="0"/>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td>
			 <table width="100%" border="0" cellpadding="0" cellspacing="0">
		     
			 	<tr>
			 		<td width="17" valign="top" background="../images/mail_leftbg.gif">
			 		<img src="../images/left-top-right.gif" width="17" height="29" />
			 		</td>
				    <td valign="top" background="../images/content-bg.gif">
				    <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				      <!-- -<div id="title" class="titlebt"> </div>-->
				        <td height="31">Input Box</td>
				      </tr>
				    </table></td>
				    <td width="16" valign="top" background="../images/mail_rightbg.gif">
				    <img src="../images/nav-right-bg.gif" width="16" height="29" />
				    </td>
			 	</tr>
			 </table>
			</td>    
		</tr>
		<tr>
			<td>
			
				<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F7F8F9">
						<thead>
							<tr>
								<th width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></th>															
								<th align="left">
									<input name="allcheckbox1" title="全选/取消"
									onclick="cball(form,this.checked);" type="checkbox" />
								</th>
								<th align="left">
									Title
								</th>
								<th align="left">
									Sender
								</th>
								<th align="left"> 
									Time
								</th>
								
								<th width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="message_inbox_list">
								<tr>
									<td width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></td>									
									<td align="left">
									   
										<input name="m[]" value='<s:property value="id" />'type="checkbox" />
									</td>
									<td align="left">
										<a href="<s:url value="message_detail.action">
										<s:param name="message_id" value="message.id"/>
										<s:param name="message_receiver_id" value="id"/>
										<s:param name="view_flag">inbox</s:param>
										</s:url>">
										<s:if test="isRead == 0">
											<img src="../images/mail_unread.gif" border="0"/>
										</s:if>
										<s:else>
											<img src="../images/mail_read_inbox.gif" border="0"/>
										</s:else>
										<s:property value="message.title" /></a>
									</td>
									<td align="left">
										<s:property value="message.user.username" />
									</td>
									<td align="left">
										<s:property value="sendTime" />
									</td>
									
									<td width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></td>									 
								</tr>
							</s:iterator>
							<tr align="right">
								<td width="17" background="../images/mail_leftbg.gif"><img src="../images/mail_leftbg.gif" width="17" height="17" /></td>
								<td><a style="cursor: pointer;" onclick="javascript:check('delall','../deleteMessageList.action');return false;" >delete</a></td>
								<td colspan="3">
								    A total of <s:property value="message_inbox_totalRow" /> rows
								    &nbsp; The <s:property value="message_inbox_currentPage" />th page
								    &nbsp; A total of <s:property value="message_inbox_pager.getTotalPages()" /> pages
								    &nbsp;<a href="<s:url value="message_inbox.action">
    			                    	<s:param name="message_inbox_currentPage" value="message_inbox_currentPage"/>
    			                   	 	<s:param name="message_inbox_pagerMethod" value="'first'"/>
       								</s:url>">First Page</a>
									<a href="<s:url value="message_inbox.action">
    									<s:param name="message_inbox_currentPage" value="message_inbox_currentPage"/>
    									<s:param name="message_inbox_pagerMethod" value="'previous'"/>
    								</s:url>">Pre Page</a>
									<a href="<s:url value="message_inbox.action">
    									<s:param name="message_inbox_currentPage" value="message_inbox_currentPage"/>
    									<s:param name="message_inbox_pagerMethod" value="'next'"/>
    								</s:url>">Next Page</a>
									<a href="<s:url value="message_inbox.action">
    									<s:param name="message_inbox_currentPage" value="message_inbox_currentPage"/>
    									<s:param name="message_inbox_pagerMethod" value="'last'"/>
    								</s:url>">Last Page</a>
								</td>
								<td width="16" background="../images/mail_rightbg.gif"><img src="../images/mail_rightbg.gif" width="16" height="17" /></td>
							</tr>

						</tbody>
			  </table>			  
			 
			</td>
		</tr>
		<tr>
			<td>
			 <table width="100%" border="0" cellpadding="0" cellspacing="0">
			 	<tr>
			 		<td width="17" valign="top" background="../images/mail_leftbg.gif"><img src="../images/buttom_left2.gif" width="17" height="17" /></td>
				    <td valign="top" background="../images/buttom_bgs.gif"><img src="../images/buttom_bgs.gif" width="17" height="17"></td>
				    <td width="16" valign="top" background="../images/mail_rightbg.gif"><img src="../images/buttom_right2.gif" width="16" height="17" /></td>
			 	</tr>
			 </table>
			</td>    
		</tr>
	</table>
	</form>
<table>
	<tr>
		<td valign="top" width="180">
			Search Email:
		</td>
		<td width="293">
			<s:form action="searchEmail_inbox" theme="simple">
					<s:textfield name="keyWord" value="please input title,content">
									</s:textfield>
					<s:submit value="search"></s:submit>
					</s:form>
		</td></tr>
</table>


	</body>
</html>

